package com.diaosidadui;

import com.diaosidadui.domain.Student;

import java.util.ArrayList;
import java.util.Scanner;

public class StudentTestInput {
    public static void main(String[] args) {
        int size= 10;


/*        ArrayList<Student> arrList = new ArrayList<>(10);
        for(int i=0;i<arrList.size() ; i++){
        }
        arrList.add(stu1);
        arrList.add(stu2);
        arrList.add(stu3);
        arrList.add(stu4);*/
/*        for (int i = 0; i < arrList.size(); i++) {
            Student stu = arrList.get(i);
            System.out.println(stu.getName() + "..." + stu.getAge());
        }*/

    }



    public static Student getStudentInfomation() {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入姓名:");
        String name = sc.nextLine();
        System.out.println("请输入年龄:");
        int age = sc.nextInt();
        Student stu =new Student(name,age);
        return stu;
    }


}
